package cn.appsys.serivce.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.appsys.dao.Backend_UserMapper;
import cn.appsys.pojo.BackendUser;
import cn.appsys.serivce.Backend_UserSerivce;
@Service("Backend_UserSerivce")
public class Backend_UserSerivceImpl implements Backend_UserSerivce {
	
	@Resource(name="backend_UserMapper")
	private Backend_UserMapper backendUserMapper;
	
	@Override
	public BackendUser BackendUserLogin(String userCode, String userPassword) {
		//如果用户名或者密码为空的 就返回空的对象回去
		if(userCode==""||userCode==null||userPassword==""||userPassword==null) {
			return null;
		}
		BackendUser backendUser=backendUserMapper.BackendUserLogin(userCode, userPassword);
		return backendUser;
	}
	

}
